package com.probox.common.entity.vo.WeCom;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.utils.DateUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 服务日期vo
 */
@Data
public class WeComWorkPlanVo implements Serializable {
    /**
     * 工作日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date workDate;

    /**
     * 预约数量
     */
    private Integer subscribeCount;

    /**
     * 待服务
     */
    private Integer staySubscribeCount;

    /**
     * 工作状态(1上班/0休息)
     */
    private String workStatus;

    /**
     * 上班类型(morning-早班/night-晚班/all-全天班)
     */
    private String workType;

    public String getWorkDateFmt(){
        return DateUtils.parseDateToStr("MM月dd日",workDate);
    }
    public String getWeekDay(){
        return DateUtils.parseDateToStr("EEEE",workDate);
    }
}
